<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	<script>
		var arr = [11,22,33,44,55]
		var top;
		for (var i = 1; i < arr.length; i++) {
			arr[i] += arr[i-1]
		}
		top = arr
		console.log('top',top.arr);
		// var top = [11,11+22,11+22+33,11+22+33+44,11+22+33+44+55]
	</script>
</body>
</html>